<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="db.Project"%>
<%@page import="db.ProjectDAO"%>
<%@page import="db.SubstoreDAO" %>
<%@ include file="/jsp/common/utility/volti.jsp" %>
<%@ include file="/jsp/common/utility/logined.jsp" %>
<%
	request.setCharacterEncoding("utf-8");
	WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
	ProjectDAO projectDAO = (ProjectDAO)ctx.getBean("ProjectDAO");
	SubstoreDAO substoreDAO = (SubstoreDAO)ctx.getBean("SubstoreDAO");
	
	pageContext.forward("/vm/prinfo/prinfo_list.vm");
%>
<%!
	public List getListReMap(List list){
		List listmap = new ArrayList();
		//System.out.println("===============>>>>>>>>");
		if(list != null && list.size()>0){
		
			for(int i=0;i<list.size();i++){
			
				Map map = new HashMap();
				Object[] aa= (Object[]) list.get(i);
				
				System.out.println("11111111=========>"+aa[0]+"====="+aa[1]+"===="+aa[2]+"===="+aa[3]+"===="+aa[4]+"======"+aa[5]+"===="+aa[6]);
				map.put("sid", aa[0]);
				map.put("sname", aa[1]);
				map.put("procode", aa[2]);
				map.put("proname", aa[3]);
				map.put("subcode", aa[4]);
				map.put("subname", aa[5]);
				map.put("company", aa[6]);
				listmap.add(map);
			}
		}
		return listmap;
	}
%>